import Vue from 'vue'
import VueRouter from 'vue-router'

const Login = () => import('@/views/Login')
const Home = () => import('@/views/home/home')
const Archives = () => import('@/views/archives/archives')
const Test = () => import('@/components/scroll/bScroll')
Vue.use(VueRouter)

const routes = [
    {
        path: '/',
        redirect: '/home'
    },
    {
        path: '/admin/login',
        component: Login
    },
    {
        path: '/home',
        component: Home
    },
    {
        path: '/archives',
        component: Archives
    },
    {
        path:"/test",
        component:Test
    }
]

const router = new VueRouter({
    mode: 'history',
    routes
})

export default router